﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace JYB.SummitExam.UI.Controllers
{
    public class StudentController : Controller
    {
        //
        // GET: /Student/
        BLL.UserBLL bll = new BLL.UserBLL();
        public ActionResult Index()
        {
            return View();
        }
        /// <summary>
        /// 初始化显示个人信息页面
        /// </summary>
        /// <returns></returns>
        public ActionResult PersonalInformation()
        {
            var id = Convert.ToInt32(Session["studentID"]);
            var result = bll.GetStudentList(id);
            return View(result);
        }
        /// <summary>
        /// 初始化开始考试页面
        /// </summary>
        /// <returns></returns>
        public ActionResult StartExam()
        {
            return View();
        }

        /// <summary>
        /// 初始化历史试卷页面
        /// </summary>
        /// <returns></returns>
        public ActionResult HistoryExam()
        {
            return View();
        }
    }
}
